import { reactive } from 'vue'

import APTMethods from '@/api/yearCheck/mfOrg'

export const usePageInfo = () => {
  
  let detailInfo = {}
  const getDetailInfo = (params) => {
    console.log(params)
    let allParams = {...{
        creditCode: '52500235762676322R', //社会编码
        examineYear: '2023', //年份
        organizationBaseId: 0, //基础库
        pageNumberMark: '1' //页码
      },...params}
    return new Promise((resolve, reject) => {
      APTMethods.getMFInfoByPage(allParams).then((res) => {
        Object.assign(detailInfo, res)
        resolve( detailInfo)
      })
    })
  }

  return {
    getDetailInfo
  }
}
